package cn.getech.data.development.mapper;


import cn.getech.data.development.dto.JobInfoDto;
import cn.getech.data.development.entity.JobInfo;
import cn.getech.data.development.model.vo.JobInfoDevOpsVO;
import cn.getech.data.development.model.vo.SumOverViewVO;
import cn.getech.data.development.model.vo.WorkSqlVO;
import cn.getech.system.center.model.dto.SysUserDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 任务信息表 Mapper 接口
 * </p>
 *
 * @author zenith
 * @since 2018-08-23
 */
@Mapper
public interface JobInfoMapper extends BaseMapper<JobInfo> {
    List<SysUserDto> getJobOwnersList(@Param("procId")Integer procId);
    List<JobInfoDto> selectListByIds(@Param("jobIds") Set<Integer> jobIds);

    void batchUpdate(@Param("nodes") List<JobInfoDto> nodes);

    List<JobInfoDto> selectListByIds1(@Param("jobIds")Set<Integer> jobIds);


    void clearPosOthers(@Param("jobIds")Set<Integer> jobIds);

    List<JobInfo> selectListByJobIds(@Param("jobIds") Set<Long> jobIds);

    void insertJobInfo(@Param("jobInfo") JobInfo jobInfo);

    SumOverViewVO selectOverView();

    JobInfoDevOpsVO getJobInfoData(@Param("workMenuId") Long workMenuId);

    void updateBatch(@Param("ids") List<Long> ids,@Param("userId") Integer userId);

    List<JobInfoDevOpsVO> listJobInfoData(@Param("jobIds") List<Long> jobIds);

    List<WorkSqlVO> tasks(@Param("userId")Long userId);
}